package com.fortune.schedule;

import org.springframework.stereotype.Component;

@Component
public class FundCalculateSchedule {

//    @Autowired
//    private List<>
//
//    @Scheduled(fixedDelay = 1000 * 60 * 60 * 10 )
//    public void run() {
//        try {
//            Thread.sleep(1000 * 60 * 60 );
//            List<CreditCardInfo> creditCardInfos = creditCardInfoDAO.queryByModel(new CreditCardInfo());
//            for (CreditCardInfo creditCardInfo : creditCardInfos) {
//                String email = creditCardInfo.getBillEmail();
//                String occurDate = DateFormatUtils.yyyyMMdd.format(new Date());
//                if (emailOccurDate.contains(email + occurDate))
//                    continue;
//                String password = creditCardInfo.getBillEmailPassword();
//                loadEmail(email, password);
//                emailOccurDate.add(email + occurDate);
//            }
//
//        } catch (Exception ex) {
//
//        }
//    }

}
